package com.eric.log.mapred;

import java.io.IOException;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.util.GenericOptionsParser;

public class LogMRMain {

	public static void main(String[] args) throws IOException, ClassNotFoundException, InterruptedException {
		Configuration conf = new Configuration();
	    String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
	    if (otherArgs.length != 3) {
	      System.err.println("Usage: wordcount <in> <out> <out2>");
	      System.exit(2);
	    }
	    
//	    System.out.println(BigInteger.valueOf(23));

//	    VisitMapRed.run(otherArgs[0], otherArgs[1]);
//	    LogBasicMapRed.sessionAsKey(true);
	    
	    PageViewMapRed.run(otherArgs[0], otherArgs[1]);
//	    LogRecommendation.run("test.txt", otherArgs[1], otherArgs[2]);
	    
	    
//	    SourceMapRed.run(otherArgs[1], otherArgs[2]);
	    
	}

}
